home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 1.iso / ARGONET / PD / PROGRAMMING / DESKLIBC / SOURCES.ZIP / DeskLib / !DLSources / Libraries / Menu / DLL / MkStubsOs < prev    next >
Text File  |  1995-09-04  |  7KB  |  300 lines

  1.  
  2. ObjectFiles    =        \
  3.             o.AddSubMenu    \
  4.             o.Extend    \
  5.             o.FontMenu    \
  6.             o.FullDispos    \
  7.             o.GetFlags    \
  8.             o.GetText    \
  9.             o.MakeIndrct    \
  10.             o.MakeWrite    \
  11.             o.NewMenu    \
  12.             o.PopUp    \
  13.             o.PopUpAuto    \
  14.             o.RemItem    \
  15.             o.ReviseWdth    \
  16.             o.SetFlags    \
  17.             o.SetText    \
  18.             o.Show    \
  19.             o.Warn    \
  20.             o.FontMenu3    \
  21.  
  22.  
  23. LibName        =    Menu
  24.  
  25.  
  26.  
  27. # Template makefile to make all .o files
  28. # and the SDLS Stubs file for DeskLib
  29. # sublibraries.
  30. # Julian Smith 16 Mar 1995.
  31.  
  32.  
  33. # The macro $(ObjectFiles) should be set at the 
  34. # start of this file, to be a space-separated
  35. # list of object files.
  36. # This is done by 'Makatic'.
  37.  
  38.  
  39. # The macro $(LibName) should also be set at the 
  40. # start of this file, to be the name of the 
  41. # DeskLib sublibrary.
  42. # This is done by 'Makatic'.
  43.  
  44. # Compiler and linker flags, These can be anything. 
  45. # All flags required by Straylight (eg CC -zM and
  46. # Link -rmf) are included in the macros $(CC) and
  47. # $(LINK).
  48. #
  49. CCFlags        =    -fahi $(CCExtra) -depend !Depend -throwback -D_DeskLib_$(LibName) -I,C:
  50. ASMFlags    =    -Stamp -NoCache -CloseExec -Quit $(ASMExtra)
  51.  
  52.  
  53. # Macros for commands, including the Straylight
  54. # tool 'cdll'. Note that DRLink doesn't seem to
  55. # work with the SDLS.
  56. #
  57. CC        =    cc -c -zM -d_DLL -JC:DLLLib.,:mem $(CCFlags)
  58. ASM        =    ObjAsm $(ASMFlags)
  59. CDLL        =    cdll
  60. LINK        =    link
  61. AS        =    as -dde -throwback
  62.  
  63.  
  64. # filename of DLL Stubs aof file. This is linked with client apps.
  65. DLL_Stubs    =    Stubs
  66.  
  67.  
  68. # Filenames of intermediate files needed to make $(DLL_Lib) and $(DLL_Stubs).
  69. #
  70. # DLL_Def:        Standard definition file as per SDLS docs.
  71. # DLL_OtherStubsSource    Assembler source to be partially linked into
  72. #            the final stubs file. This will force linking
  73. #            in of stubs from any other DLLs used by this
  74. #            library when a client application is built.
  75. # DLL_PlainStubs    The vanilla stubs file created by SDLS's cdll.
  76. # DLL_OtherStubsObject    Assembled from DLL_OtherStubsSource. This
  77. #            simply imports __DeskLib_SDLS_Stubs_<libname>'s
  78. #            for all DeskLib DLLs used by this library, and
  79. #            exports __DeskLib_SDLS_Stubs_<thislibname>.
  80. #
  81. DLL_Def            =    ^.DLLDef
  82. DLL_OtherStubsSource    =    ^.OtherStubs
  83.  
  84. DLL_PlainStubs        =    PlainStubs
  85. DLL_OtherStubsObject    =    OSObj
  86.  
  87. # -------------------------------------------------------
  88. # Everything below here should probably not be changed...
  89. # -------------------------------------------------------
  90.  
  91.  
  92.  
  93. # Now all the rules...
  94.  
  95.  
  96. # Here's the two things we want to make...
  97. #
  98. All:    $(DLL_Stubs) $(ObjectFiles)
  99.  
  100. $(DLL_Stubs):    $(DLL_PlainStubs) $(DLL_OtherStubsObject)
  101.     $(LINK) -aof -o $@ $(DLL_PlainStubs) $(DLL_OtherStubsObject)
  102.  
  103. $(DLL_PlainStubs):    $(DLL_Def)
  104.     $(CDLL) -def $(DLL_Def) -stub $(DLL_PlainStubs)
  105.  
  106.  
  107. #$(DLL_OtherStubsObject):    $(DLL_OtherStubsSource)
  108. #    $(AS) -o $(DLL_OtherStubsObject) $(DLL_OtherStubsSource)
  109.  
  110. $(DLL_OtherStubsObject):    $(DLL_OtherStubsSource)
  111.     $(ASM) $(ASMFlags) -from $(DLL_OtherStubsSource) -to $(DLL_OtherStubsObject) 
  112.  
  113.  
  114. $(DLL_Def):    
  115.     | Warning: No DLL definition file exists.
  116.     | Creating a default DLL definition file: $(DLL_Def)
  117.     | This will have to be altered by hand.
  118.     $(CDLL) -def $(DLL_Def) -obj $(ObjectFiles)
  119.  
  120.  
  121.  
  122. # Rule for compiling C source code for a Straylight dynamically-linked library.
  123.  
  124. VPATH = @.^
  125.  
  126. .SUFFIXES:    .o .c .s
  127.  
  128. .c.o:
  129.     $(CC) -o $@ $<
  130.  
  131. .s.o:
  132.     $(ASM) $(ASMFlags) -from $< -to $@
  133.  
  134.  
  135.  
  136. # Dynamic dependencies:
  137. o.AddSubMenu:    ^.c.AddSubMenu
  138. o.AddSubMenu:    DeskLib:h.Wimp
  139. o.AddSubMenu:    DeskLib:h.Core
  140. o.AddSubMenu:    C:h.stddef
  141. o.AddSubMenu:    C:DLLLib.h.dll
  142. o.AddSubMenu:    C:h.kernel
  143. o.AddSubMenu:    DeskLib:h.Menu
  144. o.AddSubMenu:    DeskLib:h.Event
  145. o.Extend:    ^.c.Extend
  146. o.Extend:    C:h.stdlib
  147. o.Extend:    DeskLib:h.Error
  148. o.Extend:    DeskLib:h.Core
  149. o.Extend:    C:h.stddef
  150. o.Extend:    C:DLLLib.h.dll
  151. o.Extend:    C:h.kernel
  152. o.Extend:    DeskLib:h.Screen
  153. o.Extend:    DeskLib:h.Wimp
  154. o.Extend:    DeskLib:h.Wimp
  155. o.Extend:    DeskLib:h.Menu
  156. o.Extend:    DeskLib:h.Event
  157. o.Extend:    ^.h.MenuDefs
  158. o.FontMenu:    ^.c.FontMenu
  159. o.FontMenu:    C:h.string
  160. o.FontMenu:    C:h.stdio
  161. o.FontMenu:    DeskLib:h.Wimp
  162. o.FontMenu:    DeskLib:h.Core
  163. o.FontMenu:    C:h.stddef
  164. o.FontMenu:    C:DLLLib.h.dll
  165. o.FontMenu:    C:h.kernel
  166. o.FontMenu:    DeskLib:h.Menu
  167. o.FontMenu:    DeskLib:h.Event
  168. o.FontMenu:    DeskLib:h.SWI
  169. o.FullDispos:    ^.c.FullDispos
  170. o.FullDispos:    C:h.stdlib
  171. o.FullDispos:    DeskLib:h.Menu
  172. o.FullDispos:    DeskLib:h.Core
  173. o.FullDispos:    C:h.stddef
  174. o.FullDispos:    C:DLLLib.h.dll
  175. o.FullDispos:    C:h.kernel
  176. o.FullDispos:    DeskLib:h.Wimp
  177. o.FullDispos:    DeskLib:h.Event
  178. o.GetFlags:    ^.c.GetFlags
  179. o.GetFlags:    DeskLib:h.Wimp
  180. o.GetFlags:    DeskLib:h.Core
  181. o.GetFlags:    C:h.stddef
  182. o.GetFlags:    C:DLLLib.h.dll
  183. o.GetFlags:    C:h.kernel
  184. o.GetFlags:    DeskLib:h.Menu
  185. o.GetFlags:    DeskLib:h.Event
  186. o.GetText:    ^.c.GetText
  187. o.GetText:    C:h.string
  188. o.GetText:    C:h.stdlib
  189. o.GetText:    DeskLib:h.Wimp
  190. o.GetText:    DeskLib:h.Core
  191. o.GetText:    C:h.stddef
  192. o.GetText:    C:DLLLib.h.dll
  193. o.GetText:    C:h.kernel
  194. o.GetText:    DeskLib:h.Menu
  195. o.GetText:    DeskLib:h.Event
  196. o.MakeIndrct:    ^.c.MakeIndrct
  197. o.MakeIndrct:    DeskLib:h.Wimp
  198. o.MakeIndrct:    DeskLib:h.Core
  199. o.MakeIndrct:    C:h.stddef
  200. o.MakeIndrct:    C:DLLLib.h.dll
  201. o.MakeIndrct:    C:h.kernel
  202. o.MakeIndrct:    DeskLib:h.Menu
  203. o.MakeIndrct:    DeskLib:h.Event
  204. o.MakeWrite:    ^.c.MakeWrite
  205. o.MakeWrite:    DeskLib:h.Core
  206. o.MakeWrite:    C:h.stddef
  207. o.MakeWrite:    C:DLLLib.h.dll
  208. o.MakeWrite:    C:h.kernel
  209. o.MakeWrite:    DeskLib:h.Wimp
  210. o.MakeWrite:    DeskLib:h.Menu
  211. o.MakeWrite:    DeskLib:h.Event
  212. o.NewMenu:    ^.c.NewMenu
  213. o.NewMenu:    C:h.stdlib
  214. o.NewMenu:    C:h.string
  215. o.NewMenu:    DeskLib:h.Core
  216. o.NewMenu:    C:h.stddef
  217. o.NewMenu:    C:DLLLib.h.dll
  218. o.NewMenu:    C:h.kernel
  219. o.NewMenu:    DeskLib:h.Error
  220. o.NewMenu:    DeskLib:h.Event
  221. o.NewMenu:    DeskLib:h.Wimp
  222. o.NewMenu:    DeskLib:h.Screen
  223. o.NewMenu:    DeskLib:h.Wimp
  224. o.NewMenu:    DeskLib:h.Menu
  225. o.NewMenu:    ^.h.MenuDefs
  226. o.PopUp:    ^.c.PopUp
  227. o.PopUp:    DeskLib:h.Menu
  228. o.PopUp:    DeskLib:h.Core
  229. o.PopUp:    C:h.stddef
  230. o.PopUp:    C:DLLLib.h.dll
  231. o.PopUp:    C:h.kernel
  232. o.PopUp:    DeskLib:h.Wimp
  233. o.PopUp:    DeskLib:h.Event
  234. o.PopUp:    DeskLib:h.WimpSWIs
  235. o.PopUp:    DeskLib:h.Coord
  236. o.PopUpAuto:    ^.c.PopUpAuto
  237. o.PopUpAuto:    DeskLib:h.Menu
  238. o.PopUpAuto:    DeskLib:h.Core
  239. o.PopUpAuto:    C:h.stddef
  240. o.PopUpAuto:    C:DLLLib.h.dll
  241. o.PopUpAuto:    C:h.kernel
  242. o.PopUpAuto:    DeskLib:h.Wimp
  243. o.PopUpAuto:    DeskLib:h.Event
  244. o.PopUpAuto:    DeskLib:h.WimpSWIs
  245. o.PopUpAuto:    DeskLib:h.Event
  246. o.RemItem:    ^.c.RemItem
  247. o.RemItem:    DeskLib:h.Wimp
  248. o.RemItem:    DeskLib:h.Core
  249. o.RemItem:    C:h.stddef
  250. o.RemItem:    C:DLLLib.h.dll
  251. o.RemItem:    C:h.kernel
  252. o.RemItem:    DeskLib:h.Menu
  253. o.RemItem:    DeskLib:h.Event
  254. o.ReviseWdth:    ^.c.ReviseWdth
  255. o.ReviseWdth:    DeskLib:h.Wimp
  256. o.ReviseWdth:    DeskLib:h.Core
  257. o.ReviseWdth:    C:h.stddef
  258. o.ReviseWdth:    C:DLLLib.h.dll
  259. o.ReviseWdth:    C:h.kernel
  260. o.ReviseWdth:    DeskLib:h.Menu
  261. o.ReviseWdth:    DeskLib:h.Event
  262. o.ReviseWdth:    C:h.string
  263. o.SetFlags:    ^.c.SetFlags
  264. o.SetFlags:    DeskLib:h.Wimp
  265. o.SetFlags:    DeskLib:h.Core
  266. o.SetFlags:    C:h.stddef
  267. o.SetFlags:    C:DLLLib.h.dll
  268. o.SetFlags:    C:h.kernel
  269. o.SetFlags:    DeskLib:h.Menu
  270. o.SetFlags:    DeskLib:h.Event
  271. o.SetText:    ^.c.SetText
  272. o.SetText:    C:h.string
  273. o.SetText:    C:h.stdlib
  274. o.SetText:    DeskLib:h.Wimp
  275. o.SetText:    DeskLib:h.Core
  276. o.SetText:    C:h.stddef
  277. o.SetText:    C:DLLLib.h.dll
  278. o.SetText:    C:h.kernel
  279. o.SetText:    DeskLib:h.Menu
  280. o.SetText:    DeskLib:h.Event
  281. o.Show:    ^.c.Show
  282. o.Show:    DeskLib:h.Wimp
  283. o.Show:    DeskLib:h.Core
  284. o.Show:    C:h.stddef
  285. o.Show:    C:DLLLib.h.dll
  286. o.Show:    C:h.kernel
  287. o.Show:    DeskLib:h.WimpSWIs
  288. o.Show:    DeskLib:h.Menu
  289. o.Show:    DeskLib:h.Event
  290. o.Warn:    ^.c.Warn
  291. o.Warn:    DeskLib:h.Wimp
  292. o.Warn:    DeskLib:h.Core
  293. o.Warn:    C:h.stddef
  294. o.Warn:    C:DLLLib.h.dll
  295. o.Warn:    C:h.kernel
  296. o.Warn:    DeskLib:h.Event
  297. o.Warn:    DeskLib:h.EventMsg
  298. o.Warn:    DeskLib:h.Menu
  299.